import { useState, memo, useMemo, useCallback } from 'react';



function Child() {
  console.log('我不想重新渲染')
  
  return (
    <div>我不想重新渲染</div>
  )
}

export default function Demo02() {
  const [count, setCount] = useState(0)

  return (
    <div className="wrapper">
      <div onClick={() => setCount(count + 1)}>{count}</div>
      <Child />
    </div>
  )
}

// {{}}
// useCallback